import mockRequest from '@/utils/mockRequest/'
const state={
    list:{}
};
const mutations={
    GETDATA(state,data){
        state.list=data;
    }
};
const actions={
    // 获取模拟的数据
    async getData({commit}){
        let result=await mockRequest.get("/home/list");
        if (result.code==20000) {
            commit("GETDATA",result.data)
        }
    }
};
const getters={}

export default{
    state,mutations,actions,getters
}